// 引入路由采用懒加载写法
export default [
  {
    path: '/',
    name: 'me',
    component: (resolve) => {
      require(['@views/welcome/Me.vue'], resolve)
    }
  },
  {
    path: '/login',
    name: 'login',
    component: (resolve) => {
      require(['@/components/login/LoginPage.vue'], resolve)
    }
  },
  {
    path: '/messageBoard',
    name: 'messageBoard',
    component: (resolve) => {
      require(['@views/messageboard/MessageBoard.vue'], resolve)
    }
  },
  {
    path: '/CodeCareer',
    name: 'CodeCareer',
    component: (resolve) => {
      require(['@views/itdao/CodeCareer.vue'], resolve)
    }
  }, {
    path: '/frontThought',
    name: 'frontThought',
    component: (resolve) => {
      require(['@views/worldscan/FrontThought.vue'], resolve)
    }
  },
  {
    path: '/readOcean',
    name: 'readOcean',
    component: (resolve) => {
      require(['@views/book/ReadOcean.vue'], resolve)
    }
  },
  {
    path: '/userDetail',
    name: 'userDetail',
    component: (resolve) => {
      require(['@views/userdetail/UserDetail.vue'], resolve)
    }
  },
  {
    path: '/blogHome',
    name: 'BlogHome',
    component: (resolve) => {
      require(['@views/blog/BlogHome.vue'], resolve)
    },
    meta: {
      title: '首页',
      icon: 'mdi-vuetify'
    },
    children: [
      {
        path: '/',
        redirect: '/blog'
      },
      {
        path: '/blog',
        name: 'Blog',
        component: (resolve) => {
          require(['@views/blog/main/content/Blog.vue'], resolve)
        },
        meta: {
          title: '博客列表'
        }
      },
      {
        path: '/blogDetail',
        name: 'blogDetail',
        component: (resolve) => {
          require(['@views/blog/main/detail/BlogDetail.vue'], resolve)
        },
        meta: { title: '博客详情' }
      }

    ]
  },
  {
    path: '/newBlog',
    name: 'newBlog',
    component: (resolve) => {
      require(['@views/blog/new/NewBlog.vue'], resolve)
    }
  }

]

